/**
* @Descripttion: 未描述
* @Author: Chenbangquan
* @version: 1.0.0
* @CreateDate 2023-04-13 14:44
* @LastEditors: cbq
* @LastEditTime: 2023-04-13
*/
<template>
  <div style="position: relative">
    <img style="position: absolute;left: -238px;top:0" :src="img"/>
  </div>
</template>

<script setup lang="ts">
    import {ref,onMounted} from 'vue'
    import router from '@/router'

    import { store } from '@/store'
    let storeData = store()
    const userInfo=storeData.getUserInfo()
    import zdImg  from '../../assets/roleImages/zd.png'
    import clImg  from '../../assets/roleImages/cl.png'
    import cwImg  from '../../assets/roleImages/cw.png'
    import yyImg  from '../../assets/roleImages/yy.png'
    import sbImg  from '../../assets/roleImages/sb.png'
    import sjImg  from '../../assets/roleImages/sj.png'
    import kfImg  from '../../assets/roleImages/kf.png'
    let img = ref('')
    onMounted(()=>{
        if(userInfo.indexUrl == '/serviceManageMent'){
            img.value = kfImg
        }if(userInfo.indexUrl == '/financeManageMent'){
            img.value = cwImg
        }if(userInfo.indexUrl == '/deviceManageMent'){
            img.value = sbImg
        }if(userInfo.indexUrl == '/carManageMent'){
            img.value = clImg
        }if(userInfo.indexUrl == '/operationsManageMent'){
            img.value = yyImg
        }if(userInfo.indexUrl == '/siteManageMent'){
            img.value = zdImg
        }if(userInfo.indexUrl == '/driverManageMent'){
            img.value = sjImg
        }
    })
</script>

<style scoped>

</style>
